package com.cheng.example.geektime.designpatterns.j58.base;

/**
 * @author chengshuai
 * @version 1.0
 * @date 2020/6/9 10:25
 */

public abstract class AbstractClass {
    public final void templateMethod() {
        //...
        method1();
        //...
        method2();
        //...
    }

    protected abstract void method1();
    protected abstract void method2();
}



